OK, so we've covered a lot in this so far in this course, and now I want to discuss basically how
you can undo what you've done.
In any particular sense, so as you can see here, this particular sentence where my cursor is, it's
it's off and I'm going to just, you know, basically delete some characters and we'll go from there.
And it turns out you can actually undo what you've done so you can delete and then say you made a mistake.
You you know, you're talking to somebody in a coffee shop or something, and you accidentally hit the
key or accidentally hit a key.
And you made a lot of mistakes.
And you want to undo those mistakes so that you can, you know, basically get back to where you were.
Well, it turns out that vem has an undue feature.
It's just it's actually quite obvious.
It's the small letter, you and you, it's basically correcting everything.
The letter U is undoing everything that I just did.
So as you can see, I'm undoing everything.
And there I've hit the end of the buffer.
So now let's just say I delete everything and I want to get back to that whole thing.
But I don't want to have to keep hitting the letter you every time to undo it, because I didn't make
a big I didn't make a small mistake.
I made a big mistake.
So if you uppercase, you then undo does everything I just did.
So a lowercase u underuse, just a couple of characters.
You know, it's probably the most efficient way of doing it.
But if you want to undo everything like, say, for instance, you deleted a whole sentence or you deleted
a whole paragraph or something accidentally, or you want to basically reverse what you've just done,
you can hit the letter you now.
I'm going to get back or kind of review what we've already discussed, so if we wanted to say, for
instance, go to the second word from where my cursor is, what do I do?
Well, I hit.
The number two and W to w see that moves it, if I wanted to get back to the beginning of the sentence,
I hit zero.
If I wanted to undo something, you if I wanted to do something for the whole sentence, I would hit
capital with you.
Now, if I wanted to append something to this sentence or two, I hit capital A as you'd see, I immediately
went into insert mode.
How do I get out of insert mode it now let's say I wanted to save this particular document without exiting.
How would I do that?
I would be calling W and that writes the sentence now if I wanted to leave them OK and write to this
you basically save and then quit.
How could I do that.
Will be w q right.
And then leave.
So save and then leave.
OK, now if I didn't want to save the changes, which is type Q and then exclamation part, that would
basically discard all the changes.
But I want to save the changes from hitting WQ.
So that's kind of number one, a review of what we already discussed and also how to undo changes.
So I hope you find that to be useful.